package myschool.myshchool15.homework;
/**计算100以内的奇数之和*/
public class SumOddNumber {
    public static void main(String[] args) {
        double sum = 0;
        double i;
        for( i=0;i<=100;i++){
            if((i%2) != 0){
                sum = sum + i;
            }
        }
        System.out.println("100以内的奇数之和为："+sum);
    }
}
